package test.demo;

public class Record {
	public static int LINE = 4;
	private int mId;
	private int mStaffId;
	private String mStartTime;
	private String mEndTime;
	private String mDate;
	private String mIp;

	public Record() {
		mEndTime = "-";
		mStartTime = "-";
	}

	public String getIp() {
		return mIp;
	}

	public void setIp(String ip) {
		this.mIp = ip;
	}

	public int getId() {
		return mId;
	}

	public void setId(int id) {
		this.mId = id;
	}

	public int getStaffId() {
		return mStaffId;
	}

	public void setStaffId(int staffId) {
		this.mStaffId = staffId;
	}

	public String getStartTime() {
		return mStartTime;
	}

	public void setStartTime(String startTime) {
		this.mStartTime = startTime;
	}

	public String getEndTime() {
		return mEndTime;
	}

	public void setEndTime(String mEndTime) {
		this.mEndTime = mEndTime;
	}

	public String getDate() {
		return mDate;
	}

	public void setDate(String date) {
		this.mDate = date;
	}

	@Override
	public String toString() {
		return "Record [mId=" + mId + ", mStaffId=" + mStaffId
				+ ", mStartTime=" + mStartTime + ", mEndTime=" + mEndTime
				+ ", mDate=" + mDate + "]";
	}

	public boolean equals(Object o) {
		if (!(o instanceof Record)) {
			return false;
		}
		Record r = (Record) o;
		return r.getId() == this.mId && r.getDate().equals(mDate)
				&& r.getStaffId() == mStaffId
				&& r.getStartTime().equals(mStartTime)
				&& r.getEndTime().equals(mEndTime);
	}
}
